package com.guigu.dispatch.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 缓冲路线表
 * </p>
 *
 * @author TaoLong
 * @since 2021-11-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("pd_cache_line")
@ApiModel(value="CacheLine对象", description="缓冲路线表")
public class CacheLine implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "起始机构")
    private String startAgencyId;

    @ApiModelProperty(value = "终点机构")
    private String endAgencyId;

    @ApiModelProperty(value = "验证是否可用key,md5(子表的起始相加)")
    private String verifyKey;

    @ApiModelProperty(value = "距离")
    private BigDecimal distance;

    @ApiModelProperty(value = "成本")
    private BigDecimal cost;

    @ApiModelProperty(value = "预计时间")
    private String estimatedTime;

    @ApiModelProperty(value = "中转次数")
    private Integer transferCount;

    @ApiModelProperty(value = "从1开始递增")
    private Integer version;

    @ApiModelProperty(value = "是否是当前最新版本 0 否 1 是")
    private Boolean isCurrent;

    @ApiModelProperty(value = "创建时间")
    private Date createDate;


}
